import request from "@/plugins/axios";
// 统计首页
export function contractApi() {
  return request({
    url: "/shop/report/index",
  });
}
//日统计
export function contractDayApi(data) {
  return request({
    url: "/shop/report/orders",
    method: "post",
    data,
  });
}
//月度统计
export function contractMonthApi(data) {
  return request({
    url: "/shop/report/orderMonth",
    method: "post",
    data,
  });
}
//年度统计
export function contractYearApi(data) {
  return request({
    url: "/shop/report/orderYear",
    method: "post",
    data,
  });
}
